<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="./vue.js"></script>
    <div id='app'>
        <div v-if = "isShow">
            显示
        </div>
        <div v-else>
            隐藏
        </div>
      <h3 v-show = "show">正常显示</h3>
    </div>
    <script>
        new Vue({
            el: "#app",
            data: {
                isShow:Math.random() > 0.5,
                show: true,
            },

        })

    </script>
</body>
</html>